﻿using System;
using System.Collections;
using PhillyCodeCamp.UI;

namespace PhillyCodeCamp.Web
{
    public partial class _Default : ViewBase, ITaxCalculatorView
    {
        private TaxCalculatorPresenter _presenter;

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            _presenter = new TaxCalculatorPresenter(this);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                _presenter.OnViewInitialized();
            }
            _presenter.OnViewLoaded();
        }

        public ICollection States
        {
            set { _; }
        }
    }

}